﻿using System.Web.Mvc;
using Telerik.Web.Mvc.UI;
using Interfacultades.Repositories;

namespace Interfacultades.Controllers
{
    public class DeporteController : Controller
    {
        public ActionResult Editing(GridEditMode? mode, GridButtonType? type)
        {
            ViewData["mode"] = mode ?? GridEditMode.InLine;
            ViewData["type"] = type ?? GridButtonType.Text;
            return View(DeporteRepository.All());
        }
        
        public ViewResult Index()
        {
            ViewData["mode"] = GridEditMode.InLine;
            ViewData["type"] = GridButtonType.Text;
            
            return View(DeporteRepository.Deportes);
        }
    }
}
